﻿<%@ Page Title="" Language="C#" MasterPageFile="ReconSite.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="Recon.Portal.WebUI.Modules.ChangePassword" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleHolder" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyHolder" runat="server">
    <div class="formDiv" style="width: 45%">
        <h2 class="formTitle">Change Password</h2>
        <asp:ChangePassword ID="chngPassword" runat="server" NewPasswordRegularExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*])[A-Za-z\d$@$!%*]{8,15}"
            ChangePasswordFailureText="Current Password incorrect or New Password invalid."
            ChangePasswordTitleText="" ConfirmPasswordCompareErrorMessage="Confirm New Password must match New Password."
            EnableViewState="False" InstructionText="<b>Password Complexity Requirements:</b><ul><li>The password must be at least 8 characters and at the most 15 characters long.</li><li>The password must contain at least 1 lower case character, 1 UPPER case character and 1 numeral.</li><li>The password can optionally contain any of the symbols:- @, $, !, %, *</li></ul>"
            NewPasswordRegularExpressionErrorMessage="Enter a valid Password that matches Password Complexity requirements."
            PasswordLabelText="Current Password:" PasswordRequiredErrorMessage="Current Password is required."
            SuccessText="Password changed successfully!" SuccessTitleText="Password Changed"
            OnChangingPassword="chngPassword_ChangingPassword">
            <InstructionTextStyle BackColor="#FFFFFF" BorderColor="#FF0000" BorderStyle="Solid"
                BorderWidth="0.5px" Font-Names="Verdana" ForeColor="#FF0000" />
            <ValidatorTextStyle BackColor="#FFFFFF" BorderColor="#FF0000" BorderStyle="Solid"
                BorderWidth="0.5px" Font-Names="Verdana" ForeColor="#FF0000" />
        </asp:ChangePassword>
        <asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red" Visible="False" />
    </div>

    <asp:UpdatePanel ID="upChangePwdMessage" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="pnlChangePwdMessage" runat="server" class="pnlMatchList">
                <div class="formDiv">
                    <center>
                        <asp:Label ID="lblMessage" runat="server" CssClass="lable" />
                    </center>
                </div>
                <div class="formDiv" style="width: 30%;">
                    <center>
                        <asp:HyperLink ID="HomeLink" runat="server" NavigateUrl="ReconSignIn.aspx" Text="Sign in using new password" />
            <div style="display: none">
                            <asp:Button ID="btnOK" runat="server" Text="OK" PostBackUrl="ReconSignIn.aspx" />
                </div>
                    </center>
                </div>
            </div>
            <div style="display: none">
                <asp:Button ID="btnManualPopup" runat="server" />
            </div>
            <ajax:ModalPopupExtender ID="btnClickPopup" runat="server" PopupControlID="pnlChangePwdMessage"
                TargetControlID="btnManualPopup" BackgroundCssClass="modalBackground" RepositionMode="RepositionOnWindowScroll" OkControlID="btnOK">
            </ajax:ModalPopupExtender>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
